2 Peter 2:21

For it would be better for them not to have known the way of righteousness, than having known it, to turn away from the holy commandment handed on to them.

Ezekiel 18:24

“But when a righteous man turns away from his righteousness, commits iniquity and does according to all the abominations that a wicked man does, will he live? All his righteous deeds which he has done will not be remembered for his treachery which he has committed and his sin which he has committed; for them he will die.

Luke 12:47

And that slave who knew his master’s will and did not get ready or act in accord with his will, will receive many lashes,

Romans 7:12

So then, the Law is holy, and the commandment is holy and righteous and good.

Hebrews 6:4-6

For in the case of those who have once been enlightened and have tasted of the heavenly gift and have been made partakers of the Holy Spirit,

Psalm 36:3-4

The words of his mouth are wickedness and deceit;
He has ceased to be wise and to do good.

Psalm 125:5

But as for those who turn aside to their crooked ways,
The Lord will lead them away with the doers of iniquity.
Peace be upon Israel.

Proverbs 12:28

In the way of righteousness is life,
And in its pathway there is no death.

Proverbs 16:31

A gray head is a crown of glory;
It is found in the way of righteousness.

Ezekiel 3:20

Again, when a righteous man turns away from his righteousness and commits iniquity, and I place an obstacle before him, he will die; since you have not warned him, he shall die in his sin, and his righteous deeds which he has done shall not be remembered; but his blood I will require at your hand.

Ezekiel 23:13

I saw that she had defiled herself; they both took the same way.

Zephaniah 1:6

And those who have turned back from following the Lord,
And those who have not sought the Lord or inquired of Him.”

Matthew 11:23-24

And you, Capernaum, will not be exalted to heaven, will you? You will descend to Hades; for if the miracles had occurred in Sodom which occurred in you, it would have remained to this day.

Matthew 21:32

For John came to you in the way of righteousness and you did not believe him; but the tax collectors and prostitutes did believe him; and you, seeing this, did not even feel remorse afterward so as to believe him.

John 9:41

Jesus said to them, If you were blind, you would have no sin; but since you say, ‘We see,’ your sin remains.

John 15:22

If I had not come and spoken to them, they would not have sin, but now they have no excuse for their sin.

1 Thessalonians 4:2

For you know what commandments we gave you by the authority of the Lord Jesus.

James 4:17

Therefore, to one who knows the right thing to do and does not do it, to him it is sin.

Treasury of Scripture Knowledge

Summary

For it had been better for them not to have known the way of righteousness, than, after they have known it, to turn from the holy commandment delivered unto them.

Bible References

It had

Matthew 11:23
And you, Capernaum, will not be exalted to heaven, will you? You will descend to Hades; for if the miracles had occurred in Sodom which occurred in you, it would have remained to this day.
Luke 12:47
And that slave who knew his master’s will and did not get ready or act in accord with his will, will receive many lashes,
John 9:41
Jesus said to them, If you were blind, you would have no sin; but since you say, ‘We see,’ your sin remains.
John 15:22
If I had not come and spoken to them, they would not have sin, but now they have no excuse for their sin.

The way

Proverbs 12:28
In the way of righteousness is life,
And in its pathway there is no death.
Proverbs 16:31
A gray head is a crown of glory;
It is found in the way of righteousness.
Matthew 21:32
For John came to you in the way of righteousness and you did not believe him; but the tax collectors and prostitutes did believe him; and you, seeing this, did not even feel remorse afterward so as to believe him.

To turn

Psalm 36:3
The words of his mouth are wickedness and deceit;
He has ceased to be wise and to do good.
Psalm 125:5
But as for those who turn aside to their crooked ways,
The Lord will lead them away with the doers of iniquity.
Peace be upon Israel.
Ezekiel 3:20
Again, when a righteous man turns away from his righteousness and commits iniquity, and I place an obstacle before him, he will die; since you have not warned him, he shall die in his sin, and his righteous deeds which he has done shall not be remembered; but his blood I will require at your hand.
Ezekiel 18:24
“But when a righteous man turns away from his righteousness, commits iniquity and does according to all the abominations that a wicked man does, will he live? All his righteous deeds which he has done will not be remembered for his treachery which he has committed and his sin which he has committed; for them he will die.
Ezekiel 23:13
I saw that she had defiled herself; they both took the same way.
Zephaniah 1:6
And those who have turned back from following the Lord,
And those who have not sought the Lord or inquired of Him.”

Holy

Romans 7:12
So then, the Law is holy, and the commandment is holy and righteous and good.
1 Thessalonians 4:2
For you know what commandments we gave you by the authority of the Lord Jesus.

General references

Genesis 24:6
Then Abraham said to him, “Beware that you do not take my son back there!
Numbers 14:4
So they said to one another, “Let us appoint a leader and return to Egypt.”
Deuteronomy 14:7
Nevertheless, you are not to eat of these among those which chew the cud, or among those that divide the hoof in two: the camel and the rabbit and the shaphan, for though they chew the cud, they do not divide the hoof; they are unclean for you.
Jeremiah 34:11
But afterward they turned around and took back the male servants and the female servants whom they had set free, and brought them into subjection for male servants and for female servants.
Ezekiel 33:18
When the righteous turns from his righteousness and commits iniquity, then he shall die in it.
Matthew 7:27
The rain fell, and the floods came, and the winds blew and slammed against that house; and it fell—and great was its fall.”
Luke 14:30
saying, ‘This man began to build and was not able to finish.’
Luke 17:32
Remember Lot’s wife.
1 Timothy 5:15
for some have already turned aside to follow Satan.